﻿
using SqlSugar;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace HiSport.Core.Entity.HiSportEntity.Bas
{

    /// <summary>
    /// 场地会员信息表
    /// </summary>
    [SugarTable(null, "场馆会员等级")]
    public class BasVenueMemberGrade : EntityTenant
    {

        /// <summary>
        /// 等级名称
        /// </summary>
        [SugarColumn(ColumnDescription = "等级名称")]
        [Required]
        [DefaultValue("")]
        [StringLength(50)]
        public string Name { get; set; }


        /// <summary>
        /// 等级编码
        /// </summary>
        [SugarColumn(ColumnDescription = "等级编码")]
        [Required]
        [DefaultValue("")]
        [StringLength(50)]
        public string GradeCode { get; set; }



        /// <summary>
        /// 等级层级
        /// </summary>
        [SugarColumn(ColumnDescription = "等级层级")]
        [Required]
        [DefaultValue(0)]
        public short Level { get; set; }


        /// <summary>
        /// 是否注册默认等级
        /// </summary>
        [SugarColumn(ColumnDescription = "是否注册默认等级")]
        [Required]
        [DefaultValue(false)]
        public bool IsDefault { get; set; }
    }
}
